package com.black.utils.file.image;

import com.black.utils.file.FileTypeEnum;
import lombok.Data;

/**
 * @author ylx
 */
@Data
public class ImageInfo {
    private String name;
    private String path;
    private String type;
    private int width;
    private int height;
    private long size;
    private double dpiX;
    private double dpiY;

    public ImageInfo(String path, String type, int width, int height, long size, double dpiX, double dpiY) {
        // TODO 前缀未去除路径
        this.name = FileTypeEnum.getPrefix(path);
        this.path = path;
        this.type = type;
        this.width = width;
        this.height = height;
        this.size = size;
        this.dpiX = dpiX;
        this.dpiY = dpiY;
    }
}
